home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
DVIM72-M
/
ALLDONE.C
< prev
next >
Wrap
Text File
|
1990-04-14
|
834b
|
30 lines
/* -*-C-*- alldone.h */
/*-->alldone*/
/**********************************************************************/
/****************************** alldone ******************************/
/**********************************************************************/
#include "dvihead.h"
#include "commands.h"
#include "gendefs.h"
#include "gblprocs.h"
#include "egblvars.h"
#include "m72.h"
void
alldone()
{
register int t;
if ((g_errenc != 0) && g_dolog && (g_logfp != (FILE *)NULL))
{ /* errors occurred - copy log file to stderr */
(void)fflush(g_logfp); /* make sure file is up-to-date */
(void)REWIND(g_logfp); /* rewind it */
while ((t=(int)getc(g_logfp)) != EOF) /* copy to stderr */
(void)putc((char)t,stderr);
(void)fclose(g_logfp); /* close it */
g_logfp = (FILE *)NULL;
}
abortrun(g_errenc);
}